#include <stdio.h>
#include "scanner.h"
#include "parser.h"

int main(int argc, char* argv[]) {
  Input *input = jscan_init();

  if(argc == 2) {
	jscan_open(input, argv[1]);
	UINT token = T_EOF;
	do {
	  token = jscan_scan(input);
	  printf("%s\n", jscan_tokenstr(token));
	} while(token != T_EOF);
  }  

  /* jscan_free(input); */
  return 0;
}
